using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools
{
    /// <summary>
    /// <para>Surface Spot</para>
    /// <para>Calculates surface values for each point in a feature class based on an input surface.</para>
    /// <para>基于输入表面计算要素类中每个点的表面值。</para>
    /// </summary>    
    [DisplayName("Surface Spot")]
    public class SurfaceSpot : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SurfaceSpot()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_surface">
        /// <para>Input Surface</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_in_feature_class">
        /// <para>Input Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public SurfaceSpot(object _in_surface, object _in_feature_class)
        {
            this._in_surface = _in_surface;
            this._in_feature_class = _in_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Surface Spot";

        public override string CallName => "3d.SurfaceSpot";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_surface, _in_feature_class, _out_spot_field, _z_factor, _method, _pyramid_level_resolution, _output_feature_class];

        /// <summary>
        /// <para>Input Surface</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surface")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_surface { get; set; }


        /// <summary>
        /// <para>Input Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_class { get; set; }


        /// <summary>
        /// <para>Spot Field</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spot Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_spot_field { get; set; } = null;


        /// <summary>
        /// <para>Z Factor</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Z Factor")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _z_factor { get; set; } = 1;


        /// <summary>
        /// <para>Method</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Method")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _method { get; set; } = null;


        /// <summary>
        /// <para>Pyramid Level Resolution</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Pyramid Level Resolution")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _pyramid_level_resolution { get; set; } = 0;


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _output_feature_class { get; set; }


        public SurfaceSpot SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}